#ifndef EDGE_H
#define EDGE_H

#include <QGraphicsItem>
#include <QGraphicsSceneMouseEvent>
#include <QPointF>

#include <list>

#include "Wave.h"

class Edge : public QGraphicsItem {
public:
    Edge(double x1, double y1,
         double x2, double y2);

    enum { Type = UserType + 2 };
    int type() const { return Type; }

protected:
    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
               QWidget *widget);
    QPainterPath shape() const;

private:
    QPointF * sourcePoint;
    QPointF * destPoint;
};

#endif // EDGE_H
